package me.zk.practice1.hw;

import java.util.Scanner;

/**
 * @author zhangkai
 * @date 2023/8/8 10:32
 */
public class HWBJ64 {
    public static void main(String[] args) {
        isHuZhi(3,5);

        Scanner scanner = new Scanner(System.in);

        int begin = Integer.parseInt(scanner.nextLine());

        int end = Integer.parseInt(scanner.nextLine());

        boolean isNa = false;
        for (int i = begin; i <= end-2; i++) {
            for (int j = i+1; j <= end-1; j++) {
                for (int k = j+1; k <= end; k++) {
                    if ( i*i + j*j < k*k) {
                        break;
                    }
                    if (isYunZu(i,j,k)) {
                        isNa = false;
                        System.out.println(i + " " + j + " "+ k);
                    }
                }
            }
        }
        if (isNa) {
            System.out.println("NA");
        }
    }
    public static boolean isYunZu(int a,int b,int c) {
        if (a*a + b*b == c*c&&isHuZhi(a,b)&&isHuZhi(a,c)&&isHuZhi(b,c)) {
            return true;
        }
        return false;
    }
    public static boolean isHuZhi(int a, int b) {
        int yushu = 0;
        while (b%a != 0) {
            yushu = b%a;
            b = a;
            a = yushu;
        }

        return a==1;
    }
}
